import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
import Login from "@/views/Login.vue"
import Register from "@/views/Register.vue"

const routes: Array<RouteRecordRaw> = [
    {
        path: '/login',
        component: Login
    },
    {
        path: '/Register',
        component: Register,

    }
]
const router = createRouter({
    routes,
    // 路由模式
    history: createWebHistory()
})

// 暴露出去
export default router;